package MsgPackage;

/**
 * @author Omri Barda		039725890 
 * @author Amit Joseph		034608547
 * @author Gilad Shpigel  	300162393
 * @author Elad Elbaz		040539959
 * @version June 2012
 */

import entities.Question;

public class AddQuestionPack extends MessagePack {
	private static final long serialVersionUID = 1L;
	private Question qstn;

	/**
	 * constructor
	 * 
	 * @param qstn
	 */
	public AddQuestionPack(Question qstn) {
		this.op = OpType.AddQuestion;
		this.qstn = qstn;
	}

	/**
	 * 
	 * @return the question
	 */
	public Question getQuestion() {
		return qstn;
	}

	/**
	 * 
	 * @param q
	 *            the question
	 */
	public void setQuestion(Question q) {
		this.qstn = q;
	}

}
